//
//  SearchTitleCell.m
//  BusinessMarket
//
//  Created by Michael Li on 2018/11/26.
//  Copyright © 2018年 Michael Li. All rights reserved.
//

#import "SearchTitleCell.h"
@interface SearchTitleCell()

@end
static NSString *identifier = @"SearchTitleCell";
@implementation SearchTitleCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.titleL.font = [UIFont systemFontOfSize:14];
}
+(instancetype)cellNibWithTableView:(UITableView *)tableView
{
    SearchTitleCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    if (!cell) {
        [tableView registerNib:[UINib nibWithNibName:@"SearchTitleCell" bundle:nil] forCellReuseIdentifier:identifier];
        cell = [tableView dequeueReusableCellWithIdentifier:identifier];
    }
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    return cell;
}
- (IBAction)deleBtn:(UIButton *)sender {
    sender.selected = !sender.selected;
    if ([self.delegate respondsToSelector:@selector(searchTitleCell:withDeleBtn:)]) {
        [self.delegate searchTitleCell:self withDeleBtn:sender];
    }
}

- (void)setIndexPath:(NSIndexPath *)indexPath {
    _indexPath =indexPath;
    
}
@end
